home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 121_01 / more.doc < prev    next >
Text File  |  1985-08-19  |  2KB  |  68 lines

  1.  
  2.      MORE (1)                  BDS C Users' Group                  MORE (1)
  3.  
  4.  
  5.  
  6.      NAME        NAME 
  7.           more - list file(s) to terminal 
  8.  
  9.      SYNOPSIS        SYNOPSIS 
  10.           more                             more [filedesc] ...  
  11.  
  12.      DESCRIPTION        DESCRIPTION 
  13.           ____                                                                    More is a program which lists one or more files, a page (or 
  14.           a user-selectable amount) at a time, on the console.  The 
  15.           names of the files to be listed are supplied as arguments on 
  16.           the command line; if no arguments are given, the user is 
  17.           prompted for filename(s).  
  18.           For each file, the first page's worth of lines is listed and 
  19.           then the user is prompted with "more?  ".  At this point, 
  20.           the following replies are accepted: 
  21.  
  22.                 N            stop listing file, go on to next
  23.           Y or (newline)     list next page
  24.                 S            list next half page
  25.                 0            go back to start of file, and list first page
  26.                nnn           list next nnn lines
  27.               -nnn           back up nnn lines, then list a page
  28.  
  29.      CAVEATS        CAVEATS 
  30.           This program was tested with v1.50 of the BDS C compiler 
  31.           under CP/M 2.2.  It should work with other versions of BDS C 
  32.           and CP/M, but has not been tested.  
  33.  
  34.      EXAMPLES        EXAMPLES 
  35.           more abc.c xyz.dat    lists files abc.c and xyz.dat in turn
  36.           more                  prompts for files to be listed
  37.  
  38.      BUGS        BUGS 
  39.           Backing up nnn lines is only very approximate (it actually 
  40.           backs up approximately nnn/3 sectors).  The only excuse for 
  41.           this is to prevent the overhead of going back to the 
  42.           beginning of a possibly large file and rereading most of 
  43.           it.  
  44.  
  45.      NOTES        NOTES 
  46.           Requires fseek.c for link.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                                       -1-
  66.  
  67.             go back to start of file, and list first page
  68.                nnn           list